package hwi.sevenc.ddangdda;

import android.app.Activity;
import android.app.Application;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class AppManager extends Application {
	
	public static final int BOY_CHARACTER = 0;
	public static final int GIRL_CHARACTER = 1;
	
	public static final int NAN_E_DO_EASY = 0;
	public static final int NAN_E_DO_MEDIUM = 1;
	public static final int NAN_E_DO_HARD = 2;
	
	public static final int NOT_MOVE = 0;
	public static final int MOVE_LEFT =1;
	public static final int MOVE_RIGHT = 2;
	public static final int MOVE_UP = 3;
	public static final int MOVE_DOWN = 4;

	public static final int GAME_EXIT = 0;
	public static final int GAME_PAUSE = 1;
	public static final int GAME_START = 2;
	public static final int GAME_RESTART = 3;
	
	
	public Resources mRes;
	public  Activity mActivityivity;
	
	public static int whatGameState;
	public static int whatCharacter;
	public static int whatNanE_DO;
	
	public Activity getmActivity() {
		return mActivityivity;
	}
	public void setmActivity(Activity mActivity) {
		this.mActivityivity = mActivity;
	}
	
	public void setmRes(Resources mRes) {
		this.mRes = mRes;
	}
	
	public Resources getResource(){
		return mRes;
	}
	
	public Bitmap getBitmap(int r){
		return BitmapFactory.decodeResource(mRes, r);		
	}
	
	public static AppManager mApp;
	public static AppManager getAppManagerIns(){
		if(mApp==null){
			mApp = new AppManager();
		}
		
		return mApp;
	}

}
